package com.huey.utils.design.creation.bridge;

import com.huey.utils.design.creation.bridge.color.White;
import com.huey.utils.design.creation.bridge.type.Rectangle;
import com.huey.utils.design.creation.bridge.type.Square;

/**
 * @author xubo
 * @date 2022/7/27 16:29
 */
public class Client {
    public static void main(String[] args) {
        //白色
        Color white = new White();
        //正方形
        Shape square = new Square();
        //白色的正方形
        square.setColor(white);
        square.draw();

        //长方形
        Shape rectange = new Rectangle();
        rectange.setColor(white);
        rectange.draw();
    }
}
